pub struct Project { /* private fields */ }Expand description
A project.
Implementations§
Source§impl Project
impl Project
Sourcepub fn new(
id: &str,
host: &Keypair,
roles: RoleTable,
now: i64,
) -> Result<Project, Error>
pub fn new( id: &str, host: &Keypair, roles: RoleTable, now: i64, ) -> Result<Project, Error>
A new project owned by host, who joins in the table’s host role.
Sourcepub fn invites(&self) -> impl Iterator<Item = &InviteState>
pub fn invites(&self) -> impl Iterator<Item = &InviteState>
The invites and their use.
Sourcepub fn pending(&self) -> &[JoinRequest]
pub fn pending(&self) -> &[JoinRequest]
People waiting for the host.
Sourcepub fn consents_of<'a>(
&'a self,
owner: &'a UserId,
) -> impl Iterator<Item = &'a ConsentGrant>
pub fn consents_of<'a>( &'a self, owner: &'a UserId, ) -> impl Iterator<Item = &'a ConsentGrant>
Consent grants that are live for owner (not revoked, not spent).
Sourcepub fn audit_for(&self, user: &UserId) -> Vec<&AuditEntry>
pub fn audit_for(&self, user: &UserId) -> Vec<&AuditEntry>
What user sees of the audit log (a host sees all).
Sourcepub fn decide(&self, who: &UserId, perm: &Permission, ctx: &Ctx) -> Explained
pub fn decide(&self, who: &UserId, perm: &Permission, ctx: &Ctx) -> Explained
Decide whether who may do perm, and why. The chain is built by running the rules
themselves, so the same inputs always give the same chain: identity and membership, then
a rule for the person, a rule for their role (a deny beats an allow at one level), the
role’s default, the extra gates, and default deny.
Sourcepub fn can(&self, who: &UserId, perm: &str, ctx: &Ctx) -> bool
pub fn can(&self, who: &UserId, perm: &str, ctx: &Ctx) -> bool
Project::decide with the permission as text.
Sourcepub fn hand_over(
&self,
host: &Keypair,
to: &UserId,
kind: HandoverKind,
now: i64,
) -> Result<Handover, Error>
pub fn hand_over( &self, host: &Keypair, to: &UserId, kind: HandoverKind, now: i64, ) -> Result<Handover, Error>
Sign a handover of the host role to the member to. Only the host can.
Sourcepub fn accept_handover(
&mut self,
me: &Keypair,
h: &Handover,
now: i64,
) -> Result<(), Error>
pub fn accept_handover( &mut self, me: &Keypair, h: &Handover, now: i64, ) -> Result<(), Error>
Become host on your own copy of the project with a handover the current host signed to you. The roles swap: you get the host role, the old host gets the role you had. The handover is kept and the change is logged under your key.
Sourcepub fn set_role(
&mut self,
actor: &Keypair,
user: &UserId,
role: &RoleId,
now: i64,
) -> Result<(), Error>
pub fn set_role( &mut self, actor: &Keypair, user: &UserId, role: &RoleId, now: i64, ) -> Result<(), Error>
Change a member’s role. Needs session.manage; the owner’s role cannot change.
Sourcepub fn kick(
&mut self,
actor: &Keypair,
user: &UserId,
now: i64,
) -> Result<(), Error>
pub fn kick( &mut self, actor: &Keypair, user: &UserId, now: i64, ) -> Result<(), Error>
Remove a member. Needs session.manage.
Sourcepub fn ban(
&mut self,
actor: &Keypair,
user: &UserId,
now: i64,
) -> Result<(), Error>
pub fn ban( &mut self, actor: &Keypair, user: &UserId, now: i64, ) -> Result<(), Error>
Ban an identity: it leaves the project, cannot rejoin, and cannot act. Needs
session.manage.
Sourcepub fn unban(
&mut self,
actor: &Keypair,
user: &UserId,
now: i64,
) -> Result<(), Error>
pub fn unban( &mut self, actor: &Keypair, user: &UserId, now: i64, ) -> Result<(), Error>
Lift a ban (the identity can use an invite again). Needs session.manage.
Sourcepub fn set_open(
&mut self,
actor: &Keypair,
open: bool,
now: i64,
) -> Result<(), Error>
pub fn set_open( &mut self, actor: &Keypair, open: bool, now: i64, ) -> Result<(), Error>
Close or reopen the session. Needs session.manage.
Sourcepub fn set_rule(
&mut self,
actor: &Keypair,
subject: Subject,
perm: &str,
effect: Effect,
expires_ms: Option<i64>,
now: i64,
) -> Result<RecordId, Error>
pub fn set_rule( &mut self, actor: &Keypair, subject: Subject, perm: &str, effect: Effect, expires_ms: Option<i64>, now: i64, ) -> Result<RecordId, Error>
Set a rule for a member or a role. Needs session.manage. Returns the rule id.
Sourcepub fn remove_rule(
&mut self,
actor: &Keypair,
rule: &RecordId,
now: i64,
) -> Result<(), Error>
pub fn remove_rule( &mut self, actor: &Keypair, rule: &RecordId, now: i64, ) -> Result<(), Error>
Remove a rule. Needs session.manage.
Sourcepub fn accept_rule(&mut self, rule: Rule) -> Result<(), Error>
pub fn accept_rule(&mut self, rule: Rule) -> Result<(), Error>
Take in a rule from another node. The signature must hold, the project must match and
the setter must have had session.manage when it was set.
Sourcepub fn grant_consent(
&mut self,
owner: &Keypair,
grantee: &UserId,
permission: &str,
streams: GrantStreams,
duration: Duration,
now: i64,
) -> Result<ConsentGrant, Error>
pub fn grant_consent( &mut self, owner: &Keypair, grantee: &UserId, permission: &str, streams: GrantStreams, duration: Duration, now: i64, ) -> Result<ConsentGrant, Error>
Give consent for grantee to use permission on your audio. Only you can: a host cannot
grant it for you. The permission must carry an owner-consent gate.
Sourcepub fn revoke_consent(
&mut self,
owner: &Keypair,
grant: &RecordId,
now: i64,
) -> Result<Revocation, Error>
pub fn revoke_consent( &mut self, owner: &Keypair, grant: &RecordId, now: i64, ) -> Result<Revocation, Error>
Revoke a grant you gave. Live capture ends at the next decision.
Sourcepub fn accept_consent(&mut self, g: ConsentGrant) -> Result<(), Error>
pub fn accept_consent(&mut self, g: ConsentGrant) -> Result<(), Error>
Take in a grant from another node (signed by the owner, for this project, gated).
Sourcepub fn accept_revocation(&mut self, r: Revocation) -> Result<(), Error>
pub fn accept_revocation(&mut self, r: Revocation) -> Result<(), Error>
Take in a revocation from another node.
Sourcepub fn accept_consent_logged(
&mut self,
g: ConsentGrant,
entry: AuditEntry,
) -> Result<(), Error>
pub fn accept_consent_logged( &mut self, g: ConsentGrant, entry: AuditEntry, ) -> Result<(), Error>
Take in a grant from another node together with the audit entry its owner signed for it
(AuditEntry::for_grant), so the grant shows in the audit as the owner’s act. The entry
must be the owner’s and describe this grant.
Sourcepub fn accept_revocation_logged(
&mut self,
r: Revocation,
entry: AuditEntry,
) -> Result<(), Error>
pub fn accept_revocation_logged( &mut self, r: Revocation, entry: AuditEntry, ) -> Result<(), Error>
Take in a revocation with the audit entry its owner signed (AuditEntry::for_revocation).
Sourcepub fn spend_consent(&mut self, grant: &RecordId, now: i64) -> Result<(), Error>
pub fn spend_consent(&mut self, grant: &RecordId, now: i64) -> Result<(), Error>
Mark a Once grant as used (one take). Other grants are unaffected.
Sourcepub fn create_invite(
&mut self,
actor: &Keypair,
spec: InviteSpec,
now: i64,
) -> Result<Invite, Error>
pub fn create_invite( &mut self, actor: &Keypair, spec: InviteSpec, now: i64, ) -> Result<Invite, Error>
Make an invite or link. Needs session.invite, and the creator’s role must be allowed
to invite as the spec’s role (an editor may make viewer links only).
The invite id is 128 bits from the OS random source, so a link cannot be guessed.
Sourcepub fn redeem(
&mut self,
host: &Keypair,
invite: &RecordId,
who: &UserId,
now: i64,
) -> Result<Redeemed, Error>
pub fn redeem( &mut self, host: &Keypair, invite: &RecordId, who: &UserId, now: i64, ) -> Result<Redeemed, Error>
Someone opened an invite. Runs on the host’s node; host records the outcome. The
identity is the one the connection proved. Auto-approve invites make the person a
member at once; others wait for Project::approve.
Sourcepub fn approve(
&mut self,
actor: &Keypair,
user: &UserId,
now: i64,
) -> Result<(), Error>
pub fn approve( &mut self, actor: &Keypair, user: &UserId, now: i64, ) -> Result<(), Error>
The host approves a waiting person. Needs session.manage.
Sourcepub fn deny(
&mut self,
actor: &Keypair,
user: &UserId,
now: i64,
) -> Result<(), Error>
pub fn deny( &mut self, actor: &Keypair, user: &UserId, now: i64, ) -> Result<(), Error>
The host turns a waiting person away. Needs session.manage.
Sourcepub fn revoke_invite(
&mut self,
actor: &Keypair,
invite: &RecordId,
end_sessions: bool,
now: i64,
) -> Result<Vec<UserId>, Error>
pub fn revoke_invite( &mut self, actor: &Keypair, invite: &RecordId, end_sessions: bool, now: i64, ) -> Result<Vec<UserId>, Error>
Revoke an invite. Needs session.manage. With end_sessions, members who came through
it (and have no other way in) leave too. Returns who left.
Sourcepub fn delete_audit(
&mut self,
actor: &Keypair,
ids: Vec<RecordId>,
now: i64,
) -> Result<AuditDeletion, Error>
pub fn delete_audit( &mut self, actor: &Keypair, ids: Vec<RecordId>, now: i64, ) -> Result<AuditDeletion, Error>
Delete audit entries. Needs session.manage (hosts only by the presets); the deletion is
a signed record that Project::merge_audit carries to other nodes.
Sourcepub fn set_retention(
&mut self,
actor: &Keypair,
retention_ms: Option<i64>,
now: i64,
) -> Result<(), Error>
pub fn set_retention( &mut self, actor: &Keypair, retention_ms: Option<i64>, now: i64, ) -> Result<(), Error>
Set how long audit entries are kept. Needs session.manage.
Sourcepub fn merge_audit(&mut self, other: &AuditLog) -> usize
pub fn merge_audit(&mut self, other: &AuditLog) -> usize
Fold in another node’s audit log: entries and deletions are checked for signature, and a deletion counts only from someone who is a host here. Returns how many entries were new.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
Source§fn 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>,
Auto Trait Implementations§
impl Forget for Project
impl Freeze for Projectwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<RoleId, RoleSpec> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(RoleId, RoleSpec)>>: Freeze,
*const LeafNode<Permission, Gate> is !null: Freeze,
PhantomData<Box<(Permission, Gate)>>: Freeze,
*const LeafNode<UserId, Member> is !null: Freeze,
PhantomData<Box<(UserId, Member)>>: Freeze,
*const LeafNode<UserId, SetValZST> is !null: Freeze,
PhantomData<Box<(UserId, SetValZST)>>: Freeze,
PhantomData<Rule>: Freeze,
PhantomData<ConsentGrant>: Freeze,
*const LeafNode<RecordId, Revocation> is !null: Freeze,
PhantomData<Box<(RecordId, Revocation)>>: Freeze,
*const LeafNode<RecordId, i64> is !null: Freeze,
PhantomData<Box<(RecordId, i64)>>: Freeze,
*const LeafNode<RecordId, InviteState> is !null: Freeze,
PhantomData<Box<(RecordId, InviteState)>>: Freeze,
PhantomData<JoinRequest>: Freeze,
PhantomData<AuditEntry>: Freeze,
PhantomData<AuditDeletion>: Freeze,
PhantomData<Handover>: Freeze,
impl Move for Project
impl RefUnwindSafe for Project
impl Send for Projectwhere
RawVecInner: Send,
NodeRef<Owned, RoleId, RoleSpec, LeafOrInternal>: Send,
BoxRaw<(RoleId, RoleSpec)>: Send,
NodeRef<Owned, Permission, Gate, LeafOrInternal>: Send,
BoxRaw<(Permission, Gate)>: Send,
NodeRef<Owned, UserId, Member, LeafOrInternal>: Send,
BoxRaw<(UserId, Member)>: Send,
NodeRef<Owned, UserId, SetValZST, LeafOrInternal>: Send,
BoxRaw<(UserId, SetValZST)>: Send,
NodeRef<Owned, RecordId, Revocation, LeafOrInternal>: Send,
BoxRaw<(RecordId, Revocation)>: Send,
NodeRef<Owned, RecordId, i64, LeafOrInternal>: Send,
BoxRaw<(RecordId, i64)>: Send,
NodeRef<Owned, RecordId, InviteState, LeafOrInternal>: Send,
BoxRaw<(RecordId, InviteState)>: Send,
impl Sync for Projectwhere
RawVecInner: Sync,
NodeRef<Owned, RoleId, RoleSpec, LeafOrInternal>: Sync,
BoxRaw<(RoleId, RoleSpec)>: Sync,
NodeRef<Owned, Permission, Gate, LeafOrInternal>: Sync,
BoxRaw<(Permission, Gate)>: Sync,
NodeRef<Owned, UserId, Member, LeafOrInternal>: Sync,
BoxRaw<(UserId, Member)>: Sync,
NodeRef<Owned, UserId, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(UserId, SetValZST)>: Sync,
NodeRef<Owned, RecordId, Revocation, LeafOrInternal>: Sync,
BoxRaw<(RecordId, Revocation)>: Sync,
NodeRef<Owned, RecordId, i64, LeafOrInternal>: Sync,
BoxRaw<(RecordId, i64)>: Sync,
NodeRef<Owned, RecordId, InviteState, LeafOrInternal>: Sync,
BoxRaw<(RecordId, InviteState)>: Sync,
impl Unpin for Projectwhere
*const u8 is !null: Unpin,
*const LeafNode<RoleId, RoleSpec> is !null: Unpin,
Box<(RoleId, RoleSpec)>: Unpin,
*const LeafNode<Permission, Gate> is !null: Unpin,
Box<(Permission, Gate)>: Unpin,
*const LeafNode<UserId, Member> is !null: Unpin,
Box<(UserId, Member)>: Unpin,
*const LeafNode<UserId, SetValZST> is !null: Unpin,
Box<(UserId, SetValZST)>: Unpin,
*const LeafNode<RecordId, Revocation> is !null: Unpin,
Box<(RecordId, Revocation)>: Unpin,
*const LeafNode<RecordId, i64> is !null: Unpin,
Box<(RecordId, i64)>: Unpin,
*const LeafNode<RecordId, InviteState> is !null: Unpin,
Box<(RecordId, InviteState)>: Unpin,
impl UnsafeUnpin for Projectwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<RoleId, RoleSpec> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(RoleId, RoleSpec)>>: UnsafeUnpin,
*const LeafNode<Permission, Gate> is !null: UnsafeUnpin,
PhantomData<Box<(Permission, Gate)>>: UnsafeUnpin,
*const LeafNode<UserId, Member> is !null: UnsafeUnpin,
PhantomData<Box<(UserId, Member)>>: UnsafeUnpin,
*const LeafNode<UserId, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(UserId, SetValZST)>>: UnsafeUnpin,
PhantomData<Rule>: UnsafeUnpin,
PhantomData<ConsentGrant>: UnsafeUnpin,
*const LeafNode<RecordId, Revocation> is !null: UnsafeUnpin,
PhantomData<Box<(RecordId, Revocation)>>: UnsafeUnpin,
*const LeafNode<RecordId, i64> is !null: UnsafeUnpin,
PhantomData<Box<(RecordId, i64)>>: UnsafeUnpin,
*const LeafNode<RecordId, InviteState> is !null: UnsafeUnpin,
PhantomData<Box<(RecordId, InviteState)>>: UnsafeUnpin,
PhantomData<JoinRequest>: UnsafeUnpin,
PhantomData<AuditEntry>: UnsafeUnpin,
PhantomData<AuditDeletion>: UnsafeUnpin,
PhantomData<Handover>: UnsafeUnpin,
impl UnwindSafe for Projectwhere
RawVecInner: UnwindSafe,
BTreeMap<RoleId, RoleSpec>: UnwindSafe,
BTreeMap<Permission, Gate>: UnwindSafe,
BTreeMap<UserId, Member>: UnwindSafe,
BTreeMap<UserId, SetValZST>: UnwindSafe,
BTreeMap<RecordId, Revocation>: UnwindSafe,
BTreeMap<RecordId, i64>: UnwindSafe,
BTreeMap<RecordId, InviteState>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Message for T
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> Pointable for T
impl<T> Pointable for T
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.