pub struct SerializedLayout(/* private fields */);Expand description
Managed memory metadata package for export/import.
This is the wire format for transmitting layout metadata between workers. It contains everything needed to reconstruct remote layouts and load their NIXL registration data.
Implementations§
Source§impl SerializedLayout
impl SerializedLayout
Sourcepub fn pack(
worker_address: WorkerAddress,
nixl_metadata: Vec<u8>,
layouts: Vec<LogicalLayoutDescriptor>,
) -> Result<Self>
pub fn pack( worker_address: WorkerAddress, nixl_metadata: Vec<u8>, layouts: Vec<LogicalLayoutDescriptor>, ) -> Result<Self>
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Self
pub fn from_bytes(bytes: Vec<u8>) -> Self
Create from raw bytes.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for SerializedLayout
impl<'__de, __Context> BorrowDecode<'__de, __Context> for SerializedLayout
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for SerializedLayout
impl Clone for SerializedLayout
Source§fn clone(&self) -> SerializedLayout
fn clone(&self) -> SerializedLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SerializedLayout
impl Debug for SerializedLayout
Source§impl<__Context> Decode<__Context> for SerializedLayout
impl<__Context> Decode<__Context> for SerializedLayout
Source§impl<'de> Deserialize<'de> for SerializedLayout
impl<'de> Deserialize<'de> for SerializedLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for SerializedLayout
impl Encode for SerializedLayout
Auto Trait Implementations§
impl Freeze for SerializedLayout
impl RefUnwindSafe for SerializedLayout
impl Send for SerializedLayout
impl Sync for SerializedLayout
impl Unpin for SerializedLayout
impl UnsafeUnpin for SerializedLayout
impl UnwindSafe for SerializedLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request