Skip to main content

Ipc

Struct Ipc 

Source
pub struct Ipc;
Expand description

Writes frames down so they can be kept or sent, and reads them back.

The second implementor of Codec, and from another crate — the first was python/’s registry of dump/load pairs — which is what keeps the hole a hole. A unit struct because the format is the format and there is nothing to configure; whoever runs the engine hands it in, and a store and a wire get the same bytes because what a frame weighs has one answer.

It refuses an opaque that is not a frame rather than guessing. A graph carrying tensors and rows wants both codecs, which is what python/’s does: a frame comes here, anything else goes to its registry.

Trait Implementations§

Source§

impl Codec for Ipc

Source§

fn packed(&self, value: &Value) -> Result<Value, CodecError>

This value in a shape that can leave the process, at any depth. Whatever carries nothing opaque comes back as it was: this is asked of every value that crosses.
Source§

fn unpacked(&self, value: &Value) -> Result<Value, CodecError>

And the live one back, on the side that will use it.

Auto Trait Implementations§

§

impl Freeze for Ipc

§

impl RefUnwindSafe for Ipc

§

impl Send for Ipc

§

impl Sync for Ipc

§

impl Unpin for Ipc

§

impl UnsafeUnpin for Ipc

§

impl UnwindSafe for Ipc

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,