pub struct RemoteLinks { /* private fields */ }Expand description
A links store served by a LinksServer, usable
wherever a local store is.
Implementations§
Source§impl RemoteLinks
impl RemoteLinks
Sourcepub fn connect(
address: impl ToSocketAddrs,
protocol: impl LinoProtocol + 'static,
) -> ProtocolResult<Self>
pub fn connect( address: impl ToSocketAddrs, protocol: impl LinoProtocol + 'static, ) -> ProtocolResult<Self>
Connects to the server at address.
Sourcepub fn connect_endpoint(
endpoint: &str,
protocol: impl LinoProtocol + 'static,
) -> ProtocolResult<Self>
pub fn connect_endpoint( endpoint: &str, protocol: impl LinoProtocol + 'static, ) -> ProtocolResult<Self>
Connects to the server at an IPC endpoint
such as unix:/tmp/links.sock or shm:/tmp/links.
Sourcepub fn new(client: LinksClient) -> Self
pub fn new(client: LinksClient) -> Self
Uses an existing connection.
Sourcepub fn execute(
&self,
operation: &LinksOperation,
) -> ProtocolResult<LinoDocument>
pub fn execute( &self, operation: &LinksOperation, ) -> ProtocolResult<LinoDocument>
Runs one operation on the server and returns its reply.
Sourcepub fn subscribe(&self, restriction: &[Part]) -> ProtocolResult<u32>
pub fn subscribe(&self, restriction: &[Part]) -> ProtocolResult<u32>
Asks the server to push the changes other connections make to the
links matching restriction; returns the subscription number that
receive_notification reports them with.
Sourcepub fn unsubscribe(&self, subscription: u32) -> ProtocolResult<()>
pub fn unsubscribe(&self, subscription: u32) -> ProtocolResult<()>
Stops a subscription; an unknown number is ignored.
Sourcepub fn receive_notification(
&self,
timeout: Duration,
) -> ProtocolResult<Option<LinksNotification>>
pub fn receive_notification( &self, timeout: Duration, ) -> ProtocolResult<Option<LinksNotification>>
The next change pushed to a subscription of this connection, waiting
up to timeout for one; Ok(None) when none arrived in time.
Sourcepub fn count_matching(&self, restriction: &[Part]) -> ProtocolResult<u32>
pub fn count_matching(&self, restriction: &[Part]) -> ProtocolResult<u32>
Number of links matching restriction.
Sourcepub fn links_matching(&self, restriction: &[Part]) -> ProtocolResult<Vec<Link>>
pub fn links_matching(&self, restriction: &[Part]) -> ProtocolResult<Vec<Link>>
Links matching restriction, ordered by index.
Sourcepub fn changes(&self, operation: &LinksOperation) -> ProtocolResult<Vec<Change>>
pub fn changes(&self, operation: &LinksOperation) -> ProtocolResult<Vec<Change>>
Runs a create, update or delete and returns its changes.
Source§impl RemoteLinks
impl RemoteLinks
Sourcepub fn execute_triplets(
&self,
operation: &TripletsOperation,
) -> ProtocolResult<LinoDocument>
pub fn execute_triplets( &self, operation: &TripletsOperation, ) -> ProtocolResult<LinoDocument>
Runs one triplet operation on the server and returns its reply.
Sourcepub fn count_triplets_matching(
&self,
restriction: &[Part],
) -> ProtocolResult<u32>
pub fn count_triplets_matching( &self, restriction: &[Part], ) -> ProtocolResult<u32>
Number of triplets matching restriction.
Sourcepub fn triplets_matching(
&self,
restriction: &[Part],
) -> ProtocolResult<Vec<Triplet>>
pub fn triplets_matching( &self, restriction: &[Part], ) -> ProtocolResult<Vec<Triplet>>
Triplets matching restriction, ordered by index.
Sourcepub fn triplet_changes(
&self,
operation: &TripletsOperation,
) -> ProtocolResult<Vec<TripletChange>>
pub fn triplet_changes( &self, operation: &TripletsOperation, ) -> ProtocolResult<Vec<TripletChange>>
Runs a create, update or delete and returns its changes.
Sourcepub fn subscribe_triplets(&self, restriction: &[Part]) -> ProtocolResult<u32>
pub fn subscribe_triplets(&self, restriction: &[Part]) -> ProtocolResult<u32>
Asks the server to push the changes other connections make to the
triplets matching restriction; returns the subscription number that
receive_triplet_notification
reports them with. unsubscribe stops it.
Sourcepub fn receive_triplet_notification(
&self,
timeout: Duration,
) -> ProtocolResult<Option<TripletsNotification>>
pub fn receive_triplet_notification( &self, timeout: Duration, ) -> ProtocolResult<Option<TripletsNotification>>
The next change pushed to a subscription of this connection, waiting
up to timeout for one; Ok(None) when none arrived in time.
Trait Implementations§
Source§impl Debug for RemoteLinks
impl Debug for RemoteLinks
Source§impl Doublets<u32> for RemoteLinks
impl Doublets<u32> for RemoteLinks
Source§fn get_link(&self, index: u32) -> Option<DoubletsLink<u32>>
fn get_link(&self, index: u32) -> Option<DoubletsLink<u32>>
index, or None if it does not exist.§fn create_by_with<F>(
&mut self,
query: impl ToQuery<T>,
handler: F,
) -> Result<Flow, Error<T>>
fn create_by_with<F>( &mut self, query: impl ToQuery<T>, handler: F, ) -> Result<Flow, Error<T>>
query, calling handler on each created link.§fn create_by(&mut self, query: impl ToQuery<T>) -> Result<T, Error<T>>where
Self: Sized,
fn create_by(&mut self, query: impl ToQuery<T>) -> Result<T, Error<T>>where
Self: Sized,
query and returns its index.§fn create_with<F>(&mut self, handler: F) -> Result<Flow, Error<T>>
fn create_with<F>(&mut self, handler: F) -> Result<Flow, Error<T>>
handler with the before/after states.§fn create(&mut self) -> Result<T, Error<T>>where
Self: Sized,
fn create(&mut self) -> Result<T, Error<T>>where
Self: Sized,
§fn each_by<F>(&self, query: impl ToQuery<T>, handler: F) -> Flow
fn each_by<F>(&self, query: impl ToQuery<T>, handler: F) -> Flow
query, calling handler for each.§fn each<F>(&self, handler: F) -> Flow
fn each<F>(&self, handler: F) -> Flow
handler for each.§fn update_by_with<H>(
&mut self,
query: impl ToQuery<T>,
change: impl ToQuery<T>,
handler: H,
) -> Result<Flow, Error<T>>
fn update_by_with<H>( &mut self, query: impl ToQuery<T>, change: impl ToQuery<T>, handler: H, ) -> Result<Flow, Error<T>>
query to change, calling handler with before/after.§fn update_by(
&mut self,
query: impl ToQuery<T>,
change: impl ToQuery<T>,
) -> Result<T, Error<T>>where
Self: Sized,
fn update_by(
&mut self,
query: impl ToQuery<T>,
change: impl ToQuery<T>,
) -> Result<T, Error<T>>where
Self: Sized,
query to change and returns the updated link’s index.§fn update_with<F>(
&mut self,
index: T,
source: T,
target: T,
handler: F,
) -> Result<Flow, Error<T>>
fn update_with<F>( &mut self, index: T, source: T, target: T, handler: F, ) -> Result<Flow, Error<T>>
index to (index, source, target), calling handler.§fn update(&mut self, index: T, source: T, target: T) -> Result<T, Error<T>>where
Self: Sized,
fn update(&mut self, index: T, source: T, target: T) -> Result<T, Error<T>>where
Self: Sized,
index to (index, source, target) and returns the index.§fn delete_by_with<F>(
&mut self,
query: impl ToQuery<T>,
handler: F,
) -> Result<Flow, Error<T>>
fn delete_by_with<F>( &mut self, query: impl ToQuery<T>, handler: F, ) -> Result<Flow, Error<T>>
query, calling handler with before/after states.§fn delete_by(&mut self, query: impl ToQuery<T>) -> Result<T, Error<T>>where
Self: Sized,
fn delete_by(&mut self, query: impl ToQuery<T>) -> Result<T, Error<T>>where
Self: Sized,
query and returns the deleted link’s index.§fn delete_with<F>(&mut self, index: T, handler: F) -> Result<Flow, Error<T>>
fn delete_with<F>(&mut self, index: T, handler: F) -> Result<Flow, Error<T>>
index, calling handler with before/after states.§fn delete(&mut self, index: T) -> Result<T, Error<T>>where
Self: Sized,
fn delete(&mut self, index: T) -> Result<T, Error<T>>where
Self: Sized,
index and returns its former index.§fn try_get_link(&self, index: T) -> Result<Link<T>, Error<T>>
fn try_get_link(&self, index: T) -> Result<Link<T>, Error<T>>
index, or Err(Error::NotExists) if it does not exist.§fn delete_all(&mut self) -> Result<(), Error<T>>where
Self: Sized,
fn delete_all(&mut self) -> Result<(), Error<T>>where
Self: Sized,
§fn delete_query_with<F>(
&mut self,
query: impl ToQuery<T>,
handler: F,
) -> Result<(), Error<T>>
fn delete_query_with<F>( &mut self, query: impl ToQuery<T>, handler: F, ) -> Result<(), Error<T>>
query, calling handler for each deletion.
Duplicate matches are deleted once, in reverse order of their first occurrence.§fn delete_usages_with<F>(
&mut self,
index: T,
handler: F,
) -> Result<(), Error<T>>
fn delete_usages_with<F>( &mut self, index: T, handler: F, ) -> Result<(), Error<T>>
index as a source or target once,
calling handler for each deletion.§fn delete_usages(&mut self, index: T) -> Result<(), Error<T>>where
Self: Sized,
fn delete_usages(&mut self, index: T) -> Result<(), Error<T>>where
Self: Sized,
index as a source or target.§fn create_point(&mut self) -> Result<T, Error<T>>where
Self: Sized,
fn create_point(&mut self) -> Result<T, Error<T>>where
Self: Sized,
§fn create_link_with<F>(
&mut self,
source: T,
target: T,
handler: F,
) -> Result<Flow, Error<T>>
fn create_link_with<F>( &mut self, source: T, target: T, handler: F, ) -> Result<Flow, Error<T>>
§fn create_link(&mut self, source: T, target: T) -> Result<T, Error<T>>where
Self: Sized,
fn create_link(&mut self, source: T, target: T) -> Result<T, Error<T>>where
Self: Sized,
source to target and returns its index.§fn found(&self, query: impl ToQuery<T>) -> boolwhere
Self: Sized,
fn found(&self, query: impl ToQuery<T>) -> boolwhere
Self: Sized,
true if at least one link matches query.§fn find(&self, query: impl ToQuery<T>) -> Option<Link<T>>where
Self: Sized,
fn find(&self, query: impl ToQuery<T>) -> Option<Link<T>>where
Self: Sized,
query, or None.§fn search(&self, source: T, target: T) -> Option<T>where
Self: Sized,
fn search(&self, source: T, target: T) -> Option<T>where
Self: Sized,
source and target, or None.§fn search_or(&self, source: T, target: T, default: T) -> Twhere
Self: Sized,
fn search_or(&self, source: T, target: T, default: T) -> Twhere
Self: Sized,
use search instead
§fn single(&self, query: impl ToQuery<T>) -> Option<Link<T>>where
Self: Sized,
fn single(&self, query: impl ToQuery<T>) -> Option<Link<T>>where
Self: Sized,
query only if exactly one link matches; None otherwise.§fn get_or_create(&mut self, source: T, target: T) -> Result<T, Error<T>>where
Self: Sized,
fn get_or_create(&mut self, source: T, target: T) -> Result<T, Error<T>>where
Self: Sized,
(source, target) link, creating it if it does not exist.§fn count_usages(&self, index: T) -> Result<T, Error<T>>where
Self: Sized,
fn count_usages(&self, index: T) -> Result<T, Error<T>>where
Self: Sized,
index as a source or target.§fn usages(&self, index: T) -> Result<Vec<T>, Error<T>>where
Self: Sized,
fn usages(&self, index: T) -> Result<Vec<T>, Error<T>>where
Self: Sized,
index as a source or target.§fn exist(&self, link: T) -> boolwhere
Self: Sized,
fn exist(&self, link: T) -> boolwhere
Self: Sized,
true if the link at link exists (internal or external).§fn has_usages(&self, link: T) -> boolwhere
Self: Sized,
fn has_usages(&self, link: T) -> boolwhere
Self: Sized,
true if any other link references link as a source or target.§fn rebase_with<F>(&mut self, old: T, new: T, handler: F) -> Result<(), Error<T>>
fn rebase_with<F>(&mut self, old: T, new: T, handler: F) -> Result<(), Error<T>>
§fn rebase(&mut self, old: T, new: T) -> Result<T, Error<T>>where
Self: Sized,
fn rebase(&mut self, old: T, new: T) -> Result<T, Error<T>>where
Self: Sized,
old to new and returns new.§fn rebase_and_delete(&mut self, old: T, new: T) -> Result<T, Error<T>>where
Self: Sized,
fn rebase_and_delete(&mut self, old: T, new: T) -> Result<T, Error<T>>where
Self: Sized,
old to new, then deletes old. Returns new.Source§impl Links<u32> for RemoteLinks
impl Links<u32> for RemoteLinks
Source§fn create_links(
&mut self,
_query: &[u32],
handler: WriteHandler<'_, u32>,
) -> Result<Flow, Error<u32>>
fn create_links( &mut self, _query: &[u32], handler: WriteHandler<'_, u32>, ) -> Result<Flow, Error<u32>>
Creates an empty (index: 0 0) link, like every doublets store.
Source§fn constants(&self) -> &LinksConstants<u32>
fn constants(&self) -> &LinksConstants<u32>
LinksConstants] (any/null/range values).Source§fn count_links(&self, query: &[u32]) -> u32
fn count_links(&self, query: &[u32]) -> u32
query.Source§fn each_links(&self, query: &[u32], handler: ReadHandler<'_, u32>) -> Flow
fn each_links(&self, query: &[u32], handler: ReadHandler<'_, u32>) -> Flow
query, calling handler for each.Source§impl NamedTypeLinks for RemoteLinks
impl NamedTypeLinks for RemoteLinks
Source§fn ensure_created(&mut self, id: u32) -> u32
fn ensure_created(&mut self, id: u32) -> u32
Asks for links until the server hands out id, then deletes the ones
handed out on the way, exactly like LinkStorage::ensure_created.
Source§fn exists(&mut self, id: u32) -> bool
fn exists(&mut self, id: u32) -> bool
Counts, so it also holds on a server in triplet mode, where a link does not read as a doublet.
Source§fn save(&mut self) -> Result<()>
fn save(&mut self) -> Result<()>
The server saves after every change, so there is nothing to flush.
fn create(&mut self, source: u32, target: u32) -> u32
fn get_link(&mut self, id: u32) -> Option<Link>
Source§fn update_observed(
&mut self,
id: u32,
source: u32,
target: u32,
observer: ChangeObserver<'_>,
) -> Result<Link>
fn update_observed( &mut self, id: u32, source: u32, target: u32, observer: ChangeObserver<'_>, ) -> Result<Link>
Self::update, reporting every change the update caused. Read moreSource§fn delete_observed(
&mut self,
id: u32,
observer: ChangeObserver<'_>,
) -> Result<Link>
fn delete_observed( &mut self, id: u32, observer: ChangeObserver<'_>, ) -> Result<Link>
Self::delete, reporting every change the deletion caused. Read morefn all_links(&mut self) -> Vec<Link> ⓘ
fn search(&mut self, source: u32, target: u32) -> Option<u32>
fn get_or_create(&mut self, source: u32, target: u32) -> u32
fn get_name(&mut self, id: u32) -> Result<Option<String>>
fn set_name(&mut self, id: u32, name: &str) -> Result<u32>
fn get_by_name(&mut self, name: &str) -> Result<Option<u32>>
fn remove_name(&mut self, id: u32) -> Result<()>
Source§fn query_limits(&self) -> Option<QueryLimits>
fn query_limits(&self) -> Option<QueryLimits>
Source§fn reserve_query_allocations(
&mut self,
_processor: &GenericQueryProcessor<T>,
_restriction: &LinoLink,
_substitution: &LinoLink,
) -> Result<Option<HashSet<T>>>
fn reserve_query_allocations( &mut self, _processor: &GenericQueryProcessor<T>, _restriction: &LinoLink, _substitution: &LinoLink, ) -> Result<Option<HashSet<T>>>
Source§fn try_create(&mut self, source: T, target: T) -> Result<T>
fn try_create(&mut self, source: T, target: T) -> Result<T>
fn try_ensure_created(&mut self, id: T) -> Result<T>
Source§fn reference_exists(&mut self, id: T) -> bool
fn reference_exists(&mut self, id: T) -> bool
id names a link that exists. Read moreSource§fn claims(&mut self, id: T) -> Option<bool>
fn claims(&mut self, id: T) -> Option<bool>
id is an address of this store, so a link created there
(Self::ensure_created, the undo of a delete) belongs in it; None
for a plain store, which has no addresses of its own. Read moreSource§fn next_created_addresses(&mut self, count: usize) -> Result<Vec<T>>
fn next_created_addresses(&mut self, count: usize) -> Result<Vec<T>>
count links created in the store get. Read morefn update(&mut self, id: T, source: T, target: T) -> Result<GenericLink<T>>
fn delete(&mut self, id: T) -> Result<GenericLink<T>>
Source§fn query_links(
&mut self,
index: Option<T>,
source: Option<T>,
target: Option<T>,
) -> Vec<GenericLink<T>>
fn query_links( &mut self, index: Option<T>, source: Option<T>, target: Option<T>, ) -> Vec<GenericLink<T>>
None matches any value, in
the order of their addresses. Read moreSource§fn try_get_or_create(&mut self, source: T, target: T) -> Result<T>
fn try_get_or_create(&mut self, source: T, target: T) -> Result<T>
fn get_or_create_named(&mut self, name: &str) -> Result<T>
fn format_reference(&mut self, id: T) -> Result<String>
fn format_lino(&mut self, link: &GenericLink<T>) -> Result<String>
fn lino_lines(&mut self) -> Result<Vec<String>>
fn write_lino_output<P: AsRef<Path>>(&mut self, path: P) -> Result<()>where
Self: Sized,
fn print_all_lino(&mut self) -> Result<()>
fn print_change_lino( &mut self, before: &Option<GenericLink<T>>, after: &Option<GenericLink<T>>, ) -> Result<()>
fn format_structure(&mut self, id: T) -> Result<String>
fn format_structure_recursive( &mut self, id: T, visited: &mut HashSet<T>, ) -> Result<String>
Source§impl Triplets for RemoteLinks
impl Triplets for RemoteLinks
Source§fn triplet_markers(&self) -> TripletMarkers
fn triplet_markers(&self) -> TripletMarkers
The markers the server names; one the subject may not read is 0.
Nothing else of this implementation depends on them: the server applies
the encoding.
Source§fn role_of(&mut self, id: u32) -> Option<DoubletRole>
fn role_of(&mut self, id: u32) -> Option<DoubletRole>
A marker, a triplet, or None: the doublets that store the triplets
are not on the wire, so they read as missing.
Source§fn create_triplet_point_at(&mut self, address: u32) -> Result<()>
fn create_triplet_point_at(&mut self, address: u32) -> Result<()>
create has no way to name an address, a substitution query does.
Source§fn doublet_usages(&mut self, id: u32) -> usize
fn doublet_usages(&mut self, id: u32) -> usize
How many other triplets use id: the doublets behind them are not on
the wire.
Source§fn create_triplet_point(&mut self) -> Result<u32>
fn create_triplet_point(&mut self) -> Result<u32>
(i: i 0 0) that is its own type: the root of a
hierarchy has to start somewhere.Source§fn update_triplet(
&mut self,
index: u32,
type_id: u32,
from: u32,
to: u32,
) -> Result<Triplet>
fn update_triplet( &mut self, index: u32, type_id: u32, from: u32, to: u32, ) -> Result<Triplet>
index (index: type from to), keeping its
address, and returns the triplet as it was. Read moreSource§fn delete_triplet(&mut self, index: u32) -> Result<Vec<Triplet>>
fn delete_triplet(&mut self, index: u32) -> Result<Vec<Triplet>>
index and every triplet that uses a deleted
one as its type, from or to; returns them all, index first. Read moreSource§fn each_triplet(&mut self, query: TripletQuery) -> Vec<Triplet>
fn each_triplet(&mut self, query: TripletQuery) -> Vec<Triplet>
query, in the order of their addresses. Read moreSource§fn count_triplets(&mut self, query: TripletQuery) -> usize
fn count_triplets(&mut self, query: TripletQuery) -> usize
query.Source§fn get_triplet(&mut self, index: u32) -> Option<Triplet>
fn get_triplet(&mut self, index: u32) -> Option<Triplet>
index, None when index is not a triplet.Source§fn is_triplet(&mut self, index: u32) -> bool
fn is_triplet(&mut self, index: u32) -> bool
index is a triplet.Source§fn reference_is_triplet(&mut self, index: u32) -> bool
fn reference_is_triplet(&mut self, index: u32) -> bool
index names a triplet: the same as
Self::is_triplet, but for a view that hides triplets, where one the
subject may refer to counts as well (issue #161).Auto Trait Implementations§
impl !Freeze for RemoteLinks
impl RefUnwindSafe for RemoteLinks
impl Send for RemoteLinks
impl Sync for RemoteLinks
impl Unpin for RemoteLinks
impl UnsafeUnpin for RemoteLinks
impl UnwindSafe for RemoteLinks
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<T, L> DecoratorsExt<T> for Lwhere
T: LinkReference,
L: Doublets<T>,
impl<T, L> DecoratorsExt<T> for Lwhere
T: LinkReference,
L: Doublets<T>,
§fn with_transactions<J>(
self,
journal: J,
) -> Result<TransactionsDecorator<T, Self, J>, Error<T>>where
J: TransitionLog<T>,
fn with_transactions<J>(
self,
journal: J,
) -> Result<TransactionsDecorator<T, Self, J>, Error<T>>where
J: TransitionLog<T>,
TransactionsDecorator and recovers its journal.§fn with_uniqueness<P>(
self,
_policy: P,
) -> <P as UniquenessPolicy>::Decorator<T, Self>where
P: UniquenessPolicy,
fn with_uniqueness<P>(
self,
_policy: P,
) -> <P as UniquenessPolicy>::Decorator<T, Self>where
P: UniquenessPolicy,
§fn with_usages<P>(self, _policy: P) -> <P as UsagesPolicy>::Decorator<T, Self>where
P: UsagesPolicy,
fn with_usages<P>(self, _policy: P) -> <P as UsagesPolicy>::Decorator<T, Self>where
P: UsagesPolicy,
§fn with_usages_validation(self) -> UsagesValidator<T, Self>
fn with_usages_validation(self) -> UsagesValidator<T, Self>
UsagesValidator.§fn with_cascade_usages_resolution(self) -> CascadeUsagesResolver<T, Self>
fn with_cascade_usages_resolution(self) -> CascadeUsagesResolver<T, Self>
CascadeUsagesResolver.§fn with_inner_reference_existence_validation(
self,
) -> InnerReferenceExistenceValidator<T, Self>
fn with_inner_reference_existence_validation( self, ) -> InnerReferenceExistenceValidator<T, Self>
InnerReferenceExistenceValidator.§fn with_non_existent_dependencies_creation(
self,
) -> NonExistentDependenciesCreator<T, Self>
fn with_non_existent_dependencies_creation( self, ) -> NonExistentDependenciesCreator<T, Self>
NonExistentDependenciesCreator.§fn with_non_existent_deletion_resolution(
self,
) -> NonExistentDeletionResolver<T, Self>
fn with_non_existent_deletion_resolution( self, ) -> NonExistentDeletionResolver<T, Self>
NonExistentDeletionResolver, ignoring deletion of missing links.§fn with_itself_constant_resolution(
self,
) -> ItselfConstantToSelfReferenceResolver<T, Self>
fn with_itself_constant_resolution( self, ) -> ItselfConstantToSelfReferenceResolver<T, Self>
ItselfConstantToSelfReferenceResolver.§fn with_null_constant_resolution(
self,
) -> NullConstantToSelfReferenceResolver<T, Self>
fn with_null_constant_resolution( self, ) -> NullConstantToSelfReferenceResolver<T, Self>
NullConstantToSelfReferenceResolver.§fn with_non_null_contents_deletion_resolution(
self,
) -> NonNullContentsLinkDeletionResolver<T, Self>
fn with_non_null_contents_deletion_resolution( self, ) -> NonNullContentsLinkDeletionResolver<T, Self>
NonNullContentsLinkDeletionResolver.§fn with_logging<W>(self, writer: W) -> LoggingDecorator<T, Self, W>
fn with_logging<W>(self, writer: W) -> LoggingDecorator<T, Self, W>
LoggingDecorator, logging every mutation to writer.§fn with_no_exceptions(self) -> NoExceptionsDecorator<T, Self>
fn with_no_exceptions(self) -> NoExceptionsDecorator<T, Self>
NoExceptionsDecorator.§fn with_automatic_uniqueness_and_usages_resolution(
self,
) -> CascadeUniquenessAndUsagesResolver<T, NonNullContentsLinkDeletionResolver<T, CascadeUsagesResolver<T, Self>>>
fn with_automatic_uniqueness_and_usages_resolution( self, ) -> CascadeUniquenessAndUsagesResolver<T, NonNullContentsLinkDeletionResolver<T, CascadeUsagesResolver<T, Self>>>
ILinksExtensions.DecorateWithAutomaticUniquenessAndUsagesResolution:
CascadeUsagesResolver innermost, then NonNullContentsLinkDeletionResolver,
then CascadeUniquenessAndUsagesResolver outermost.
The cascade explicitly resets each nested usage before descending, so handlers
observe resets before the corresponding deletions, as with C#’s facade recursion. Read more§impl<T, All> DoubletsExt<T> for Allwhere
T: LinkReference,
All: Doublets<T>,
impl<T, All> DoubletsExt<T> for Allwhere
T: LinkReference,
All: Doublets<T>,
§fn iter(
&self,
) -> impl Iterator<Item = Link<T>> + ExactSizeIterator + DoubleEndedIterator
fn iter( &self, ) -> impl Iterator<Item = Link<T>> + ExactSizeIterator + DoubleEndedIterator
§fn each_iter(
&self,
query: impl ToQuery<T>,
) -> impl Iterator<Item = Link<T>> + ExactSizeIterator + DoubleEndedIterator
fn each_iter( &self, query: impl ToQuery<T>, ) -> impl Iterator<Item = Link<T>> + ExactSizeIterator + DoubleEndedIterator
query.