pub struct PrefixProviderProxy { /* private fields */ }
Implementations§
source§impl PrefixProviderProxy
impl PrefixProviderProxy
sourcepub fn take_event_stream(&self) -> PrefixProviderEventStream
pub fn take_event_stream(&self) -> PrefixProviderEventStream
Get a Stream of events from the remote end of the PrefixProvider protocol
Panics
Panics if the event stream was already taken.
sourcepub fn acquire_prefix(
&self,
config: AcquirePrefixConfig,
prefix: ServerEnd<PrefixControlMarker>
) -> Result<(), Error>
pub fn acquire_prefix( &self, config: AcquirePrefixConfig, prefix: ServerEnd<PrefixControlMarker> ) -> Result<(), Error>
Acquire an IPv6 prefix via Prefix Delegation.
If this method is called with invalid parameters, a terminal event
containing a reason detailing why will be sent via
[PrefixControl.OnExit
] and the server end of [PrefixControl
]
will be closed.
- request
config
prefix acquisition configuration. - request
prefix
provides control over prefix acquisition.
Trait Implementations§
source§impl Clone for PrefixProviderProxy
impl Clone for PrefixProviderProxy
source§fn clone(&self) -> PrefixProviderProxy
fn clone(&self) -> PrefixProviderProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PrefixProviderProxy
impl Debug for PrefixProviderProxy
source§impl PrefixProviderProxyInterface for PrefixProviderProxy
impl PrefixProviderProxyInterface for PrefixProviderProxy
fn acquire_prefix( &self, config: AcquirePrefixConfig, prefix: ServerEnd<PrefixControlMarker> ) -> Result<(), Error>
source§impl Proxy for PrefixProviderProxy
impl Proxy for PrefixProviderProxy
§type Protocol = PrefixProviderMarker
type Protocol = PrefixProviderMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more