pub struct RequestMetaObject(pub MetaObject);mcp and tools only.Expand description
The _meta map carried by requests (spec RequestMetaObject).
In addition to arbitrary extension keys, requests reserve:
progressTokenfor progress trackingio.modelcontextprotocol/protocolVersion(SEP-2575)io.modelcontextprotocol/clientInfo(SEP-2575)io.modelcontextprotocol/clientCapabilities(SEP-2575)io.modelcontextprotocol/logLevel(SEP-2575)
The 2026-07-28 draft schema requires the protocol-version and
client-capabilities keys; client-info is optional. Earlier protocol versions
do not know them. All keys therefore stay optional at runtime and in the
generated (version-shared) JSON schema — use
RequestMetaObject::missing_required_keys to validate a request against
the negotiated protocol version.
This type dereferences to MetaObject (and transitively to the underlying
map), so general helpers such as the SEP-414 trace-context accessors remain
available.
Tuple Fields§
§0: MetaObjectImplementations§
Source§impl RequestMetaObject
impl RequestMetaObject
Sourcepub const DRAFT_REQUIRED_KEYS: [&'static str; 2]
pub const DRAFT_REQUIRED_KEYS: [&'static str; 2]
Request _meta keys the 2026-07-28 draft schema marks as required.
Sourcepub fn new() -> RequestMetaObject
pub fn new() -> RequestMetaObject
Create an empty request metadata map.
Sourcepub fn with_progress_token(token: ProgressToken) -> RequestMetaObject
pub fn with_progress_token(token: ProgressToken) -> RequestMetaObject
Create a new request meta with a progress token set
Sourcepub fn with_client_context(
protocol_version: ProtocolVersion,
client_info: Implementation,
client_capabilities: ClientCapabilities,
) -> RequestMetaObject
pub fn with_client_context( protocol_version: ProtocolVersion, client_info: Implementation, client_capabilities: ClientCapabilities, ) -> RequestMetaObject
Create request metadata with the client context SEP-2575 requires on every request.
Sourcepub fn get_progress_token(&self) -> Option<ProgressToken>
pub fn get_progress_token(&self) -> Option<ProgressToken>
Get the progress token carried in _meta, if present and valid.
Sourcepub fn set_progress_token(&mut self, token: ProgressToken)
pub fn set_progress_token(&mut self, token: ProgressToken)
Set the progress token carried in _meta.
Sourcepub fn protocol_version(&self) -> Option<ProtocolVersion>
pub fn protocol_version(&self) -> Option<ProtocolVersion>
Get the MCP protocol version carried in _meta, if present and valid.
Sourcepub fn set_protocol_version(&mut self, protocol_version: ProtocolVersion)
pub fn set_protocol_version(&mut self, protocol_version: ProtocolVersion)
Set the MCP protocol version carried in _meta.
Sourcepub fn client_info(&self) -> Option<Implementation>
pub fn client_info(&self) -> Option<Implementation>
Get the client implementation identity carried in _meta, if present and valid.
Sourcepub fn set_client_info(&mut self, client_info: Implementation)
pub fn set_client_info(&mut self, client_info: Implementation)
Set the client implementation identity carried in _meta.
Sourcepub fn client_capabilities(&self) -> Option<ClientCapabilities>
pub fn client_capabilities(&self) -> Option<ClientCapabilities>
Get the client capabilities carried in _meta, if present and valid.
Sourcepub fn set_client_capabilities(
&mut self,
client_capabilities: ClientCapabilities,
)
pub fn set_client_capabilities( &mut self, client_capabilities: ClientCapabilities, )
Set the client capabilities carried in _meta.
Sourcepub fn log_level(&self) -> Option<LoggingLevel>
pub fn log_level(&self) -> Option<LoggingLevel>
Get the requested per-request log level carried in _meta, if present and valid.
Sourcepub fn set_log_level(&mut self, log_level: LoggingLevel)
pub fn set_log_level(&mut self, log_level: LoggingLevel)
Set the requested per-request log level carried in _meta.
Sourcepub fn missing_required_keys(
&self,
protocol_version: &ProtocolVersion,
) -> Vec<&'static str>
pub fn missing_required_keys( &self, protocol_version: &ProtocolVersion, ) -> Vec<&'static str>
Return the Self::DRAFT_REQUIRED_KEYS whose values are absent or
invalid in this map, if protocol_version requires them.
A key counts as missing when it is not present or when its value does
not decode into the expected type (e.g. a numeric protocolVersion or
a string clientInfo), matching what the typed accessors return.
Protocol versions before 2026-07-28 have no required request metadata, so this always returns an empty list for them.
§Examples
use rmcp::model::{ProtocolVersion, RequestMetaObject};
let meta = RequestMetaObject::new();
// Older protocols have no required request metadata.
assert!(
meta.missing_required_keys(&ProtocolVersion::V_2025_11_25)
.is_empty()
);
// The 2026-07-28 protocol requires per-request context.
assert_eq!(
meta.missing_required_keys(&ProtocolVersion::V_2026_07_28),
RequestMetaObject::DRAFT_REQUIRED_KEYS.to_vec(),
);Sourcepub fn extend(&mut self, other: RequestMetaObject)
pub fn extend(&mut self, other: RequestMetaObject)
Insert every entry of other, overwriting existing keys on conflict.
Methods from Deref<Target = MetaObject>§
Sourcepub fn get_traceparent(&self) -> Option<&str>
pub fn get_traceparent(&self) -> Option<&str>
Get the W3C traceparent value (SEP-414), if present.
Sourcepub fn set_traceparent(&mut self, value: impl Into<String>)
pub fn set_traceparent(&mut self, value: impl Into<String>)
Set the W3C traceparent value (SEP-414).
use rmcp::model::MetaObject;
let mut meta = MetaObject::new();
meta.set_traceparent("00-0af7651916cd43dd8448eb211c80319c-00f067aa0ba902b7-01");
assert_eq!(
meta.get_traceparent(),
Some("00-0af7651916cd43dd8448eb211c80319c-00f067aa0ba902b7-01"),
);Sourcepub fn get_tracestate(&self) -> Option<&str>
pub fn get_tracestate(&self) -> Option<&str>
Get the W3C tracestate value (SEP-414), if present.
Sourcepub fn set_tracestate(&mut self, value: impl Into<String>)
pub fn set_tracestate(&mut self, value: impl Into<String>)
Set the W3C tracestate value (SEP-414).
Sourcepub fn get_baggage(&self) -> Option<&str>
pub fn get_baggage(&self) -> Option<&str>
Get the W3C baggage value (SEP-414), if present.
Sourcepub fn set_baggage(&mut self, value: impl Into<String>)
pub fn set_baggage(&mut self, value: impl Into<String>)
Set the W3C baggage value (SEP-414).
Sourcepub fn extend(&mut self, other: MetaObject)
pub fn extend(&mut self, other: MetaObject)
Insert every entry of other, overwriting existing keys on conflict.
Methods from Deref<Target = Map<String, Value>>§
Sourcepub fn get<Q>(&self, key: &Q) -> Option<&Value>
pub fn get<Q>(&self, key: &Q) -> Option<&Value>
Returns a reference to the value corresponding to the key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Sourcepub fn contains_key<Q>(&self, key: &Q) -> bool
pub fn contains_key<Q>(&self, key: &Q) -> bool
Returns true if the map contains a value for the specified key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Sourcepub fn get_mut<Q>(&mut self, key: &Q) -> Option<&mut Value>
pub fn get_mut<Q>(&mut self, key: &Q) -> Option<&mut Value>
Returns a mutable reference to the value corresponding to the key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Sourcepub fn get_key_value<Q>(&self, key: &Q) -> Option<(&String, &Value)>
pub fn get_key_value<Q>(&self, key: &Q) -> Option<(&String, &Value)>
Returns the key-value pair matching the given key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Sourcepub fn insert(&mut self, k: String, v: Value) -> Option<Value>
pub fn insert(&mut self, k: String, v: Value) -> Option<Value>
Inserts a key-value pair into the map.
If the map did not have this key present, None is returned.
If the map did have this key present, the value is updated, and the old value is returned.
Sourcepub fn shift_insert(
&mut self,
index: usize,
k: String,
v: Value,
) -> Option<Value>
Available on crate feature preserve_order only.
pub fn shift_insert( &mut self, index: usize, k: String, v: Value, ) -> Option<Value>
preserve_order only.Insert a key-value pair in the map at the given index.
If the map did not have this key present, None is returned.
If the map did have this key present, the key is moved to the new position, the value is updated, and the old value is returned.
Sourcepub fn remove<Q>(&mut self, key: &Q) -> Option<Value>
pub fn remove<Q>(&mut self, key: &Q) -> Option<Value>
Removes a key from the map, returning the value at the key if the key was previously in the map.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
If serde_json’s “preserve_order” is enabled, .remove(key) is
equivalent to .swap_remove(key), replacing this
entry’s position with the last element. If you need to preserve the
relative order of the keys in the map, use
.shift_remove(key) instead.
Sourcepub fn remove_entry<Q>(&mut self, key: &Q) -> Option<(String, Value)>
pub fn remove_entry<Q>(&mut self, key: &Q) -> Option<(String, Value)>
Removes a key from the map, returning the stored key and value if the key was previously in the map.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
If serde_json’s “preserve_order” is enabled, .remove_entry(key) is
equivalent to .swap_remove_entry(key),
replacing this entry’s position with the last element. If you need to
preserve the relative order of the keys in the map, use
.shift_remove_entry(key) instead.
Sourcepub fn swap_remove<Q>(&mut self, key: &Q) -> Option<Value>
Available on crate feature preserve_order only.
pub fn swap_remove<Q>(&mut self, key: &Q) -> Option<Value>
preserve_order only.Removes and returns the value corresponding to the key from the map.
Like Vec::swap_remove, the entry is removed by swapping it with the
last element of the map and popping it off. This perturbs the position
of what used to be the last element!
Sourcepub fn swap_remove_entry<Q>(&mut self, key: &Q) -> Option<(String, Value)>
Available on crate feature preserve_order only.
pub fn swap_remove_entry<Q>(&mut self, key: &Q) -> Option<(String, Value)>
preserve_order only.Remove and return the key-value pair.
Like Vec::swap_remove, the entry is removed by swapping it with the
last element of the map and popping it off. This perturbs the position
of what used to be the last element!
Sourcepub fn shift_remove<Q>(&mut self, key: &Q) -> Option<Value>
Available on crate feature preserve_order only.
pub fn shift_remove<Q>(&mut self, key: &Q) -> Option<Value>
preserve_order only.Removes and returns the value corresponding to the key from the map.
Like Vec::remove, the entry is removed by shifting all of the
elements that follow it, preserving their relative order. This perturbs
the index of all of those elements!
Sourcepub fn shift_remove_entry<Q>(&mut self, key: &Q) -> Option<(String, Value)>
Available on crate feature preserve_order only.
pub fn shift_remove_entry<Q>(&mut self, key: &Q) -> Option<(String, Value)>
preserve_order only.Remove and return the key-value pair.
Like Vec::remove, the entry is removed by shifting all of the
elements that follow it, preserving their relative order. This perturbs
the index of all of those elements!
Sourcepub fn append(&mut self, other: &mut Map<String, Value>)
pub fn append(&mut self, other: &mut Map<String, Value>)
Moves all elements from other into self, leaving other empty.
Sourcepub fn entry<S>(&mut self, key: S) -> Entry<'_>
pub fn entry<S>(&mut self, key: S) -> Entry<'_>
Gets the given key’s corresponding entry in the map for in-place manipulation.
Sourcepub fn iter_mut(&mut self) -> IterMut<'_> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_> ⓘ
Gets a mutable iterator over the entries of the map.
Sourcepub fn values_mut(&mut self) -> ValuesMut<'_> ⓘ
pub fn values_mut(&mut self) -> ValuesMut<'_> ⓘ
Gets an iterator over mutable values of the map.
Sourcepub fn retain<F>(&mut self, f: F)
pub fn retain<F>(&mut self, f: F)
Retains only the elements specified by the predicate.
In other words, remove all pairs (k, v) such that f(&k, &mut v)
returns false.
Sourcepub fn sort_keys(&mut self)
pub fn sort_keys(&mut self)
Sorts this map’s entries in-place using str’s usual ordering.
If serde_json’s “preserve_order” feature is not enabled, this method does no work because all JSON maps are always kept in a sorted state.
If serde_json’s “preserve_order” feature is enabled, this method destroys the original source order or insertion order of this map in favor of an alphanumerical order that matches how a BTreeMap with the same contents would be ordered. This takes O(n log n + c) time where n is the length of the map and c is the capacity.
Other maps nested within the values of this map are not sorted. If you
need the entire data structure to be sorted at all levels, you must also
call
map.values_mut().for_each(Value::sort_all_objects).
Trait Implementations§
Source§impl Clone for RequestMetaObject
impl Clone for RequestMetaObject
Source§fn clone(&self) -> RequestMetaObject
fn clone(&self) -> RequestMetaObject
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RequestMetaObject
impl Debug for RequestMetaObject
Source§impl Default for RequestMetaObject
impl Default for RequestMetaObject
Source§fn default() -> RequestMetaObject
fn default() -> RequestMetaObject
Source§impl Deref for RequestMetaObject
impl Deref for RequestMetaObject
Source§type Target = MetaObject
type Target = MetaObject
Source§impl DerefMut for RequestMetaObject
impl DerefMut for RequestMetaObject
Source§impl<'de> Deserialize<'de> for RequestMetaObject
impl<'de> Deserialize<'de> for RequestMetaObject
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestMetaObject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestMetaObject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<MetaObject> for RequestMetaObject
impl From<MetaObject> for RequestMetaObject
Source§fn from(meta: MetaObject) -> RequestMetaObject
fn from(meta: MetaObject) -> RequestMetaObject
Source§impl<C> FromContextPart<C> for RequestMetaObjectwhere
C: AsRequestContext,
impl<C> FromContextPart<C> for RequestMetaObjectwhere
C: AsRequestContext,
fn from_context_part(context: &mut C) -> Result<RequestMetaObject, ErrorData>
Source§impl JsonSchema for RequestMetaObject
Available on crate feature schemars only.
impl JsonSchema for RequestMetaObject
schemars only.Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for RequestMetaObject
impl PartialEq for RequestMetaObject
Source§impl Serialize for RequestMetaObject
impl Serialize for RequestMetaObject
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for RequestMetaObject
Auto Trait Implementations§
impl Freeze for RequestMetaObject
impl RefUnwindSafe for RequestMetaObject
impl Send for RequestMetaObject
impl Sync for RequestMetaObject
impl Unpin for RequestMetaObject
impl UnsafeUnpin for RequestMetaObject
impl UnwindSafe for RequestMetaObject
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> MaybeSend for Twhere
T: Send,
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.