pub struct StationInboundPacketRef<'a> {
pub source_station: StationId,
pub target_station: StationId,
pub bytes: &'a [u8],
}Expand description
Borrowed station packet backed by a transport-owned receive buffer.
Fields§
§source_station: StationIdSource station resolved from the remote address.
target_station: StationIdTarget station owned by the receiving adapter.
bytes: &'a [u8]Encoded bytes valid until the transport is mutably reused.
Implementations§
Source§impl StationInboundPacketRef<'_>
impl StationInboundPacketRef<'_>
Sourcepub fn to_owned(self) -> StationInboundPacket
pub fn to_owned(self) -> StationInboundPacket
Materializes the compatible owned packet shape.
Trait Implementations§
Source§impl<'a> Clone for StationInboundPacketRef<'a>
impl<'a> Clone for StationInboundPacketRef<'a>
Source§fn clone(&self) -> StationInboundPacketRef<'a>
fn clone(&self) -> StationInboundPacketRef<'a>
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 moreimpl<'a> Copy for StationInboundPacketRef<'a>
Source§impl<'a> Debug for StationInboundPacketRef<'a>
impl<'a> Debug for StationInboundPacketRef<'a>
impl<'a> Eq for StationInboundPacketRef<'a>
Source§impl<'a> PartialEq for StationInboundPacketRef<'a>
impl<'a> PartialEq for StationInboundPacketRef<'a>
impl<'a> StructuralPartialEq for StationInboundPacketRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for StationInboundPacketRef<'a>
impl<'a> RefUnwindSafe for StationInboundPacketRef<'a>
impl<'a> Send for StationInboundPacketRef<'a>
impl<'a> Sync for StationInboundPacketRef<'a>
impl<'a> Unpin for StationInboundPacketRef<'a>
impl<'a> UnsafeUnpin for StationInboundPacketRef<'a>
impl<'a> UnwindSafe for StationInboundPacketRef<'a>
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