pub struct SeamServer { /* private fields */ }Implementations§
Source§impl SeamServer
impl SeamServer
pub fn new() -> Self
pub fn procedure(self, proc: ProcedureDef) -> Self
pub fn subscription(self, sub: SubscriptionDef) -> Self
pub fn stream(self, stream: StreamDef) -> Self
pub fn upload(self, upload: UploadDef) -> Self
pub fn channel(self, channel: ChannelDef) -> Self
Sourcepub fn namespace(self, prefix: &str, procedures: Vec<ProcedureDef>) -> Self
pub fn namespace(self, prefix: &str, procedures: Vec<ProcedureDef>) -> Self
Register procedures under a dot-separated namespace prefix (e.g. “blog” -> “blog.getPost”).
Sourcepub fn namespace_subs(self, prefix: &str, subs: Vec<SubscriptionDef>) -> Self
pub fn namespace_subs(self, prefix: &str, subs: Vec<SubscriptionDef>) -> Self
Register subscriptions under a dot-separated namespace prefix.
Sourcepub fn namespace_streams(self, prefix: &str, streams: Vec<StreamDef>) -> Self
pub fn namespace_streams(self, prefix: &str, streams: Vec<StreamDef>) -> Self
Register streams under a dot-separated namespace prefix.
pub fn page(self, page: PageDef) -> Self
pub fn rpc_hash_map(self, map: RpcHashMap) -> Self
pub fn i18n_config(self, config: I18nConfig) -> Self
pub fn public_dir(self, dir: PathBuf) -> Self
pub fn build(self, build: BuildOutput) -> Self
pub fn resolve_strategies( self, strategies: Vec<Box<dyn ResolveStrategy>>, ) -> Self
pub fn context(self, key: &str, field: ContextFieldDef) -> Self
pub fn validation_mode(self, mode: ValidationMode) -> Self
pub fn transport_config(self, config: TransportConfig) -> Self
Sourcepub fn into_parts(self) -> SeamParts
pub fn into_parts(self) -> SeamParts
Consume the builder, returning framework-agnostic parts for an adapter. Channels are expanded into their Level 0 primitives (commands + subscriptions).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SeamServer
impl !RefUnwindSafe for SeamServer
impl Send for SeamServer
impl Sync for SeamServer
impl Unpin for SeamServer
impl UnsafeUnpin for SeamServer
impl !UnwindSafe for SeamServer
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
Mutably borrows from an owned value. Read more