pub struct PathUnawareUdpScionSocket { /* private fields */ }Expand description
A path unaware UDP SCION socket.
Implementations§
Source§impl PathUnawareUdpScionSocket
impl PathUnawareUdpScionSocket
Sourcepub fn send_to_via<'a>(
&'a self,
payload: &[u8],
destination: SocketAddr,
path: &Path<&[u8]>,
) -> BoxFuture<'a, Result<(), ScionSocketSendError>>
pub fn send_to_via<'a>( &'a self, payload: &[u8], destination: SocketAddr, path: &Path<&[u8]>, ) -> BoxFuture<'a, Result<(), ScionSocketSendError>>
Send a SCION UDP datagram via the given path.
Sourcepub fn recv_from_with_path<'a>(
&'a self,
buffer: &'a mut [u8],
path_buffer: &'a mut [u8],
) -> BoxFuture<'a, Result<(usize, SocketAddr, Path<&'a mut [u8]>), ScionSocketReceiveError>>
pub fn recv_from_with_path<'a>( &'a self, buffer: &'a mut [u8], path_buffer: &'a mut [u8], ) -> BoxFuture<'a, Result<(usize, SocketAddr, Path<&'a mut [u8]>), ScionSocketReceiveError>>
Receive a SCION packet with the sender and path.
Sourcepub fn recv_from<'a>(
&'a self,
buffer: &'a mut [u8],
) -> BoxFuture<'a, Result<(usize, SocketAddr), ScionSocketReceiveError>>
pub fn recv_from<'a>( &'a self, buffer: &'a mut [u8], ) -> BoxFuture<'a, Result<(usize, SocketAddr), ScionSocketReceiveError>>
Receive a SCION packet with the sender.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathUnawareUdpScionSocket
impl !RefUnwindSafe for PathUnawareUdpScionSocket
impl Send for PathUnawareUdpScionSocket
impl Sync for PathUnawareUdpScionSocket
impl Unpin for PathUnawareUdpScionSocket
impl !UnwindSafe for PathUnawareUdpScionSocket
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> 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