pub trait Bearer {
// Required methods
fn profile(&self) -> BearerProfile;
fn mtu(&self) -> u16;
fn scope(&self) -> ScopeEpoch;
fn send(
&mut self,
dest: &ObservedLocator,
frame: &[u8],
) -> Result<usize, QdnfError>;
fn recv(&mut self, out: &mut [u8]) -> Result<(usize, RecvMeta), QdnfError>;
fn shutdown(&mut self) -> Result<(), QdnfError>;
}Required Methods§
Sourcefn profile(&self) -> BearerProfile
fn profile(&self) -> BearerProfile
Bearer profile.
Sourcefn scope(&self) -> ScopeEpoch
fn scope(&self) -> ScopeEpoch
Scope epoch.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".