INNER CODE UNIT · Rust

add_alias

librespot-org/librespot · discovery/src/lib.rs:467

    pub fn add_alias(
        mut self,
        alias: impl Into<Cow<'static, str>>,
        id: u32,
        is_group: bool,
    ) -> Self {
        self.server_config.aliases.push(server::Alias {
            name: alias.into(),
            id,
            is_group,
        });
        self
    }

    /// Set the ip addresses on which it should listen to incoming connections. The default is all interfaces.
    pub fn zeroconf_ip(mut self, zeroconf_ip: Vec<std::net::IpAddr>) -> Self {
        self.zeroconf_ip = zeroconf_ip;
        self

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…