pub struct Slot<T> { /* private fields */ }
Expand description
A mutable memory location with atomic storage rules.
Implementations
sourceimpl<T> Slot<T>
impl<T> Slot<T>
sourceimpl<T: Default> Slot<T>
impl<T: Default> Slot<T>
sourcepub fn with_default() -> Self
pub fn with_default() -> Self
Creates a new slot containing the default instance of T
.
Trait Implementations
sourceimpl<'de, T: Deserialize<'de>> Deserialize<'de> for Slot<T>
impl<'de, T: Deserialize<'de>> Deserialize<'de> for Slot<T>
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T: Filter + Default> Filter for Slot<T>
impl<T: Filter + Default> Filter for Slot<T>
sourcefn read(&self, ctx: &mut ReadContext) -> Option<()>
fn read(&self, ctx: &mut ReadContext) -> Option<()>
Filter::read
is invoked when the proxy receives data from a
downstream connection on the listening port. Read moresourcefn write(&self, ctx: &mut WriteContext) -> Option<()>
fn write(&self, ctx: &mut WriteContext) -> Option<()>
Filter::write
is invoked when the proxy is about to send data to a
downstream connection via the listening port after receiving it via one
of the upstream Endpoints. Read moresourceimpl<T: JsonSchema + Default> JsonSchema for Slot<T>
impl<T: JsonSchema + Default> JsonSchema for Slot<T>
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations
impl<T> !RefUnwindSafe for Slot<T>
impl<T> Send for Slot<T>where
T: Send + Sync,
impl<T> Sync for Slot<T>where
T: Send + Sync,
impl<T> Unpin for Slot<T>
impl<T> !UnwindSafe for Slot<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request