pub struct SelfOwnedPointerAddress(pub [u8; 5]);Tuple Fields§
§0: [u8; 5]Implementations§
Source§impl SelfOwnedPointerAddress
impl SelfOwnedPointerAddress
pub fn new(address: [u8; 5]) -> Self
Sourcepub unsafe fn new_static_from_name(name: &str) -> Self
pub unsafe fn new_static_from_name(name: &str) -> Self
§Safety
Calling this function multiple times with the same name is not allowed. Hash collisions might also occur for different names (TODO)
pub fn to_address_string(&self) -> String
Sourcepub fn remote_for_endpoint(&self, endpoint: &Endpoint) -> RemotePointerAddress
pub fn remote_for_endpoint(&self, endpoint: &Endpoint) -> RemotePointerAddress
Returns a RemotePointerAddress for the given endpoint and his self-owned pointer address.
Trait Implementations§
Source§impl BinRead for SelfOwnedPointerAddress
impl BinRead for SelfOwnedPointerAddress
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for SelfOwnedPointerAddress
impl BinWrite for SelfOwnedPointerAddress
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write<W>(&self, writer: &mut W) -> Result<(), Error>
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer using default arguments. Read moreSource§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming native-endian byte order. Read moreSource§fn write_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer using the given arguments. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Clone for SelfOwnedPointerAddress
impl Clone for SelfOwnedPointerAddress
Source§impl Debug for SelfOwnedPointerAddress
impl Debug for SelfOwnedPointerAddress
Source§impl Display for SelfOwnedPointerAddress
impl Display for SelfOwnedPointerAddress
impl Eq for SelfOwnedPointerAddress
Source§impl From<SelfOwnedPointerAddress> for PointerAddress
impl From<SelfOwnedPointerAddress> for PointerAddress
Source§fn from(owned: SelfOwnedPointerAddress) -> Self
fn from(owned: SelfOwnedPointerAddress) -> Self
Converts to this type from the input type.
Source§impl Hash for SelfOwnedPointerAddress
impl Hash for SelfOwnedPointerAddress
Source§impl PartialEq for SelfOwnedPointerAddress
impl PartialEq for SelfOwnedPointerAddress
Source§impl ReadEndian for SelfOwnedPointerAddress
impl ReadEndian for SelfOwnedPointerAddress
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
impl StructuralPartialEq for SelfOwnedPointerAddress
Source§impl TryFrom<String> for SelfOwnedPointerAddress
impl TryFrom<String> for SelfOwnedPointerAddress
Source§impl WriteEndian for SelfOwnedPointerAddress
impl WriteEndian for SelfOwnedPointerAddress
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Forget for SelfOwnedPointerAddress
impl Freeze for SelfOwnedPointerAddress
impl Move for SelfOwnedPointerAddress
impl RefUnwindSafe for SelfOwnedPointerAddress
impl Send for SelfOwnedPointerAddress
impl Sync for SelfOwnedPointerAddress
impl Unpin for SelfOwnedPointerAddress
impl UnsafeUnpin for SelfOwnedPointerAddress
impl UnwindSafe for SelfOwnedPointerAddress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type