pub struct Endpoint { /* private fields */ }Implementations§
Source§impl Endpoint
impl Endpoint
pub const ANY_INSTANCE: u16 = 0u16
pub fn new(name_binary: &Vec<u8>, instance: u16) -> Endpoint
pub fn new_person(name: &str, instance: u16) -> Endpoint
pub fn new_institution(name: &str, instance: u16) -> Endpoint
pub fn new_from_binary(binary: &Vec<u8>) -> Endpoint
pub fn get_binary(&self) -> &Vec<u8> ⓘ
pub fn get_type(&self) -> &EndpointType
pub fn get_instance(&self) -> u16
pub fn to_string(&self, colorized: bool) -> String
Trait Implementations§
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
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> 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 more