pub struct OpenRepoV0 {
pub hash: RepoHash,
pub overlay: OverlayAccess,
pub peers: Vec<PeerAdvert>,
pub max_peer_count: u16,
pub ro_topics: Vec<TopicId>,
pub rw_topics: Vec<PublisherAdvert>,
}
Expand description
Request to open a repo in a non-durable way (without pinning it).
When client will disconnect, the subscriptions and publisherAdvert of the topics will be removed, except if a PinRepo occurred before or after the OpenRepo replied with a RepoOpened
Fields§
§hash: RepoHash
Repo Hash
overlay: OverlayAccess
§peers: Vec<PeerAdvert>
Broker peers to connect to in order to join the overlay can be empty for private store (the broker will not connect to any other broker) but if the private repo is pinned in other brokers, those brokers should be entered here for syncing. can be empty also when we just created the repo, and there are no other brokers in the overlay
max_peer_count: u16
a list of core brokers that are allowed to connect to the overlay (only valid for an inner (RW/WO) overlay). an empty list means any core broker is allowed. this is the default behaviour. to restrict the overlay to only the current core, its DirectPeerId should be entered here. Maximum number of peers to connect to for this overlay (only valid for an inner (RW/WO) overlay) 0 means automatic/unlimited
ro_topics: Vec<TopicId>
list of topics that should be subscribed to
rw_topics: Vec<PublisherAdvert>
list of topics for which we will be a publisher only possible with inner (RW or WO) overlays. implies also subscribing to it (no need to put it also in ro_topics)
Trait Implementations§
Source§impl Clone for OpenRepoV0
impl Clone for OpenRepoV0
Source§fn clone(&self) -> OpenRepoV0
fn clone(&self) -> OpenRepoV0
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OpenRepoV0
impl Debug for OpenRepoV0
Source§impl<'de> Deserialize<'de> for OpenRepoV0
impl<'de> Deserialize<'de> for OpenRepoV0
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 Freeze for OpenRepoV0
impl RefUnwindSafe for OpenRepoV0
impl Send for OpenRepoV0
impl Sync for OpenRepoV0
impl Unpin for OpenRepoV0
impl UnwindSafe for OpenRepoV0
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more